{% extends "base.html" %}

{% block head-title %}{{algorithm.algorithm_name}}{% endblock %}

{% block title %}{{ algorithm.algorithm_name }}{% endblock %}

{% block content %}
<script src="/static/js/data_collector/1.js"></script>
<form action="/data_collector/configure_parameters/" method="post" class="uk-form" id="form1"
					onsubmit="return onForm1Submit();">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{algorithm.instance_id}}"/>
	<fieldset>
		<legend>参数准备</legend>
		{% ifequal algorithm.algorithm_name "最热APP应用" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				类型:
				<select name="app_type" id="app_type">
					<option value="free">免费TOP</option>
					<option value="pay">付费TOP</option>
				</select>
			</div>
		</div>
		{% endifequal %}
		
		{% ifequal algorithm.algorithm_name "豆瓣电影" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				TOP排名:
				<select name="movie_limit_count" id="movie_limit_count">
					<option value="25">25</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
					<option value="250">250</option>
				</select>
			</div>
		</div>
		{% endifequal %}
		
		{% ifequal algorithm.algorithm_name "新闻采集" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				新闻类型:
				<select name="news_type_id" id="news_type_id">
					<option value="2509">全部</option>
					<option value="2510">国内</option>
					<option value="2511">国际</option>
					<option value="2512">体育</option>
					<option value="2513">娱乐</option>
					<option value="2514">军事</option>
					<option value="2515">科技</option>
					<option value="2516">财经</option>
				</select>
			</div>
		</div>
		<div class="uk-form-row">
			<div class="uk-form-controls">
				数量限制:
				<select name="news_limit_count" id="news_limit_count">
					<option value="10">10</option>
					<option value="30">30</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
			</div>
		</div>
		{% endifequal %}
		
		{% ifequal algorithm.algorithm_name "历史天气" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				城市:
				<select name="city" id="city">
					<option value="fuzhou">福州</option>
					<option value="xiamen">厦门</option>
					<option value="ningde">宁德</option>
					<option value="putian">莆田</option>
					<option value="quanzhou">泉州</option>
					<option value="zhangzhou">漳州</option>
					<option value="longyan">龙岩</option>
					<option value="sanming">三明</option>
					<option value="nanping">南平</option>
				</select>
			</div>
		</div>
		<div class="uk-form-row">
			<div class="uk-form-controls">
				月份:
				<select name="month" id="month">
					<option value="201901">201901</option>
					<option value="201902">201902</option>
					<option value="201903">201903</option>
					<option value="201904">201904</option>
					<option value="201905">201905</option>
					<option value="201906">201906</option>
					<option value="201907">201907</option>
					<option value="201908">201908</option>
					<option value="201909">201909</option>
					<option value="201910">201910</option>
					<option value="201911">201911</option>
					<option value="201912">201912</option>
				</select>
			</div>
		</div>
		{% endifequal %}
		
		{% ifequal algorithm.algorithm_name "微博内容" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				微博用户:
				<select name="uid" id="uid">
					<option value="2803301701">人民日报</option>
					<option value="1638781994">新浪体育</option>
					<option value="1776448504">蔡徐坤</option>
					<option value="2730549204">共青团福建省委</option>
				</select>
			</div>
		</div>
		<div class="uk-form-row">
			<div class="uk-form-controls">
				限制条数:
				<select name="blog_limit_count" id="blog_limit_count">
					<option value="10">10</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
			</div>
		</div>
		{% endifequal %}
		{% ifequal algorithm.algorithm_name "股票信息" %}
		<div class="uk-form-row">
			<div class="uk-form-controls">
				类型:
				<select name="stock_type" id="stock_type">
					<option value="创业板">创业板</option>
					<option value="科创板">科创板</option>
				</select>
			</div>
		</div>
		{% endifequal %}
	</fieldset>
	<div class="uk-form-row" style="margin-top:5px;">
		<input class="uk-button" type="reset" value="重置">
		<input class="uk-button uk-button-primary" type="submit"
			value="提交" style="float: right;">
	</div>
</form>
{% endblock %}